﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Reflection;

namespace PocketPond.Core
{
    public class Utils
    {
        public static String getPocketPondDir()
        {
            //Assembly asm = Assembly.GetExecutingAssembly();
            //return System.IO.Path.GetDirectoryName(asm.GetName().CodeBase);

            String strDir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + 
                            "\\PocketPond";
            if (!System.IO.Directory.Exists(strDir))
            {
                System.IO.Directory.CreateDirectory(strDir);
            }
            return strDir;
        }
    }
}
